package org.simp.util.log;
/**
 *
 * @Author zhuhaitao at 2014年6月24日
 *
 *
 **/
public class Log4j implements Logger{

	private org.apache.log4j.Logger log;
	
	public Log4j(){};
	public Log4j(Class clazz){
		log = org.apache.log4j.Logger.getLogger(clazz);
	}

	@Override
	public void info(String message) {
		log.info(message);
		
	}

	@Override
	public void debug(String message) {
		log.debug(message);
		
	}

	@Override
	public void debug(String message, Throwable t) {
		
		log.debug(message,t);
	}

	@Override
	public void warn(String message, Throwable t) {
		
		log.warn(message,t);
	}

	@Override
	public void warn(String message) {
		log.warn(message);
		
	}

	@Override
	public void error(String message) {
		log.error(message);
		
	}

	@Override
	public void error(String message, Throwable t) {
		
		log.error(message, t);
	}
	@Override
	public Logger create(Class clazz) {
		return new Log4j(clazz);
	}
	
}
